﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VideoClubGorbea.Model;
using VideoClubGorbea.Infraestructure.RepositoryFramework;

namespace VideoClubGorbea.Infraestructure.Repositories
{
    public class GorbeaRepository //: RepositoryBase<Movie>
    {
        List<Movie> movieList;

        public GorbeaRepository(IUnitOfWork unitOfWork)   //:
        // base(unitOfWork)
	    {
            movieList = new List<Movie>() { 
                new Movie(){}
                 };
	    }
        
        //public override Movie FindBy(object key)
        //{
        //    return movieList.Where(c => c.MovieID == (int)key).FirstOrDefault();            
        //}

        //protected override void PersistNewItem(Movie item)
        //{
        //    movieList.Add(item);
            
        //}

        //protected override void PersistUpdatedItem(Movie item)
        //{
        //    movieList.Insert(movieList.IndexOf(item), item);
        //}

        //protected override void PersistDeletedItem(Movie item)
        //{
        //    movieList.Remove(item);
        //}

       
    }
    
}
